<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<link rel="STYLESHEET" href="lib.css" type='text/css' />
<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
<link rel='start' href='../index.html' title='Python documentation Index' />
<link rel="first" href="lib.html" title='Python library Reference' />
<link rel='contents' href='contents.html' title="Contents" />
<link rel='index' href='genindex.html' title='Index' />
<link rel='last' href='about.html' title='About this document...' />
<link rel='help' href='about.html' title='About this document...' />
<link rel="next" href="forms-objects.html" />
<link rel="prev" href="node907.html" />
<link rel="parent" href="module-fl.html" />
<link rel="next" href="forms-objects.html" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name='aesop' content='information' />
<title>34.4.2 Form Objects</title>
</head>
<body>
<div class="navigation">
<div id='top-navigation-panel' xml:id='top-navigation-panel'>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="34.4.1 functions Defined in"
  href="node907.html"><img src='../icons/previous.png'
  border='0' height='32'  alt='Previous Page' width='32' /></a></td>
<td class='online-navigation'><a rel="parent" title="34.4 fl  "
  href="module-fl.html"><img src='../icons/up.png'
  border='0' height='32'  alt='Up one Level' width='32' /></a></td>
<td class='online-navigation'><a rel="next" title="34.4.3 forms Objects"
  href="forms-objects.html"><img src='../icons/next.png'
  border='0' height='32'  alt='Next Page' width='32' /></a></td>
<td align="center" width="100%">Python Library Reference</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
  href="contents.html"><img src='../icons/contents.png'
  border='0' height='32'  alt='Contents' width='32' /></a></td>
<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
  border='0' height='32'  alt='Module Index' width='32' /></a></td>
<td class='online-navigation'><a rel="index" title="Index"
  href="genindex.html"><img src='../icons/index.png'
  border='0' height='32'  alt='Index' width='32' /></a></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="node907.html">34.4.1 Functions Defined in</a>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="module-fl.html">34.4 fl  </a>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="forms-objects.html">34.4.3 FORMS Objects</a>
</div>
<hr /></div>
</div>
<!--End of Navigation Panel-->

<h2><a name="SECTION0036420000000000000000"></a>
<a name="form-objects"></a>
<br>
34.4.2 Form Objects
</h2>

<p>
Form objects (returned by <tt class="function">make_form()</tt> above) have the
following methods.  Each method corresponds to a C function whose
name is prefixed with "<tt class="samp">fl_</tt>"; and whose first argument is a form
pointer; please refer to the official FORMS documentation for
descriptions.

<p>
All the <tt class="method">add_*()</tt> methods return a Python object representing
the FORMS object.  Methods of FORMS objects are described below.  Most
kinds of FORMS object also have some methods specific to that kind;
these methods are listed here.

<p>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5651' xml:id='l2h-5651' class="method">show_form</tt></b>(</nobr></td>
  <td><var>placement, bordertype, name</var>)</td></tr></table></dt>
<dd>
  Show the form.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5652' xml:id='l2h-5652' class="method">hide_form</tt></b>(</nobr></td>
  <td><var></var>)</td></tr></table></dt>
<dd>
  Hide the form.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5653' xml:id='l2h-5653' class="method">redraw_form</tt></b>(</nobr></td>
  <td><var></var>)</td></tr></table></dt>
<dd>
  Redraw the form.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5654' xml:id='l2h-5654' class="method">set_form_position</tt></b>(</nobr></td>
  <td><var>x, y</var>)</td></tr></table></dt>
<dd>
Set the form's position.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5655' xml:id='l2h-5655' class="method">freeze_form</tt></b>(</nobr></td>
  <td><var></var>)</td></tr></table></dt>
<dd>
Freeze the form.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5656' xml:id='l2h-5656' class="method">unfreeze_form</tt></b>(</nobr></td>
  <td><var></var>)</td></tr></table></dt>
<dd>
  Unfreeze the form.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5657' xml:id='l2h-5657' class="method">activate_form</tt></b>(</nobr></td>
  <td><var></var>)</td></tr></table></dt>
<dd>
  Activate the form.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5658' xml:id='l2h-5658' class="method">deactivate_form</tt></b>(</nobr></td>
  <td><var></var>)</td></tr></table></dt>
<dd>
  Deactivate the form.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5659' xml:id='l2h-5659' class="method">bgn_group</tt></b>(</nobr></td>
  <td><var></var>)</td></tr></table></dt>
<dd>
  Begin a new group of objects; return a group object.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5660' xml:id='l2h-5660' class="method">end_group</tt></b>(</nobr></td>
  <td><var></var>)</td></tr></table></dt>
<dd>
  End the current group of objects.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5661' xml:id='l2h-5661' class="method">find_first</tt></b>(</nobr></td>
  <td><var></var>)</td></tr></table></dt>
<dd>
  Find the first object in the form.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5662' xml:id='l2h-5662' class="method">find_last</tt></b>(</nobr></td>
  <td><var></var>)</td></tr></table></dt>
<dd>
  Find the last object in the form.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5663' xml:id='l2h-5663' class="method">add_box</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a box object to the form.
No extra methods.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5664' xml:id='l2h-5664' class="method">add_text</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a text object to the form.
No extra methods.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5665' xml:id='l2h-5665' class="method">add_clock</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a clock object to the form. 
<br>
Method:
<tt class="method">get_clock()</tt>.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5666' xml:id='l2h-5666' class="method">add_button</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h,  name</var>)</td></tr></table></dt>
<dd>
Add a button object to the form. 
<br>
Methods:
<tt class="method">get_button()</tt>,
<tt class="method">set_button()</tt>.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5667' xml:id='l2h-5667' class="method">add_lightbutton</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a lightbutton object to the form. 
<br>
Methods:
<tt class="method">get_button()</tt>,
<tt class="method">set_button()</tt>.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5668' xml:id='l2h-5668' class="method">add_roundbutton</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a roundbutton object to the form. 
<br>
Methods:
<tt class="method">get_button()</tt>,
<tt class="method">set_button()</tt>.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5669' xml:id='l2h-5669' class="method">add_slider</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a slider object to the form. 
<br>
Methods:
<tt class="method">set_slider_value()</tt>,
<tt class="method">get_slider_value()</tt>,
<tt class="method">set_slider_bounds()</tt>,
<tt class="method">get_slider_bounds()</tt>,
<tt class="method">set_slider_return()</tt>,
<tt class="method">set_slider_size()</tt>,
<tt class="method">set_slider_precision()</tt>,
<tt class="method">set_slider_step()</tt>.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5670' xml:id='l2h-5670' class="method">add_valslider</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a valslider object to the form. 
<br>
Methods:
<tt class="method">set_slider_value()</tt>,
<tt class="method">get_slider_value()</tt>,
<tt class="method">set_slider_bounds()</tt>,
<tt class="method">get_slider_bounds()</tt>,
<tt class="method">set_slider_return()</tt>,
<tt class="method">set_slider_size()</tt>,
<tt class="method">set_slider_precision()</tt>,
<tt class="method">set_slider_step()</tt>.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5671' xml:id='l2h-5671' class="method">add_dial</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a dial object to the form. 
<br>
Methods:
<tt class="method">set_dial_value()</tt>,
<tt class="method">get_dial_value()</tt>,
<tt class="method">set_dial_bounds()</tt>,
<tt class="method">get_dial_bounds()</tt>.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5672' xml:id='l2h-5672' class="method">add_positioner</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a positioner object to the form. 
<br>
Methods:
<tt class="method">set_positioner_xvalue()</tt>,
<tt class="method">set_positioner_yvalue()</tt>,
<tt class="method">set_positioner_xbounds()</tt>,
<tt class="method">set_positioner_ybounds()</tt>,
<tt class="method">get_positioner_xvalue()</tt>,
<tt class="method">get_positioner_yvalue()</tt>,
<tt class="method">get_positioner_xbounds()</tt>,
<tt class="method">get_positioner_ybounds()</tt>.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5673' xml:id='l2h-5673' class="method">add_counter</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a counter object to the form. 
<br>
Methods:
<tt class="method">set_counter_value()</tt>,
<tt class="method">get_counter_value()</tt>,
<tt class="method">set_counter_bounds()</tt>,
<tt class="method">set_counter_step()</tt>,
<tt class="method">set_counter_precision()</tt>,
<tt class="method">set_counter_return()</tt>.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5674' xml:id='l2h-5674' class="method">add_input</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a input object to the form. 
<br>
Methods:
<tt class="method">set_input()</tt>,
<tt class="method">get_input()</tt>,
<tt class="method">set_input_color()</tt>,
<tt class="method">set_input_return()</tt>.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5675' xml:id='l2h-5675' class="method">add_menu</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a menu object to the form. 
<br>
Methods:
<tt class="method">set_menu()</tt>,
<tt class="method">get_menu()</tt>,
<tt class="method">addto_menu()</tt>.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5676' xml:id='l2h-5676' class="method">add_choice</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a choice object to the form. 
<br>
Methods:
<tt class="method">set_choice()</tt>,
<tt class="method">get_choice()</tt>,
<tt class="method">clear_choice()</tt>,
<tt class="method">addto_choice()</tt>,
<tt class="method">replace_choice()</tt>,
<tt class="method">delete_choice()</tt>,
<tt class="method">get_choice_text()</tt>,
<tt class="method">set_choice_fontsize()</tt>,
<tt class="method">set_choice_fontstyle()</tt>.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5677' xml:id='l2h-5677' class="method">add_browser</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a browser object to the form. 
<br>
Methods:
<tt class="method">set_browser_topline()</tt>,
<tt class="method">clear_browser()</tt>,
<tt class="method">add_browser_line()</tt>,
<tt class="method">addto_browser()</tt>,
<tt class="method">insert_browser_line()</tt>,
<tt class="method">delete_browser_line()</tt>,
<tt class="method">replace_browser_line()</tt>,
<tt class="method">get_browser_line()</tt>,
<tt class="method">load_browser()</tt>,
<tt class="method">get_browser_maxline()</tt>,
<tt class="method">select_browser_line()</tt>,
<tt class="method">deselect_browser_line()</tt>,
<tt class="method">deselect_browser()</tt>,
<tt class="method">isselected_browser_line()</tt>,
<tt class="method">get_browser()</tt>,
<tt class="method">set_browser_fontsize()</tt>,
<tt class="method">set_browser_fontstyle()</tt>,
<tt class="method">set_browser_specialkey()</tt>.
</dl>
<div align="LEFT">
</div>
<p>
<div align="LEFT"></div><dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline">
  <td><nobr><b><tt id='l2h-5678' xml:id='l2h-5678' class="method">add_timer</tt></b>(</nobr></td>
  <td><var>type, x, y, w, h, name</var>)</td></tr></table></dt>
<dd>
Add a timer object to the form. 
<br>
Methods:
<tt class="method">set_timer()</tt>,
<tt class="method">get_timer()</tt>.
</dl>
<div align="LEFT">
</div>

<p>
Form objects have the following data attributes; see the FORMS
documentation:

<p>
<div class="center"><table class="realtable">
  <thead>
    <tr>
      <th class="left"  >Name</th>
      <th class="left"  >C Type</th>
      <th class="left"  >Meaning</th>
      </tr>
    </thead>
  <tbody>
    <tr><td class="left"   valign="baseline"><tt class="member">window</tt></td>
        <td class="left"  >int (read-only)</td>
        <td class="left"  >GL window id</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="member">w</tt></td>
        <td class="left"  >float</td>
        <td class="left"  >form width</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="member">h</tt></td>
        <td class="left"  >float</td>
        <td class="left"  >form height</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="member">x</tt></td>
        <td class="left"  >float</td>
        <td class="left"  >form x origin</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="member">y</tt></td>
        <td class="left"  >float</td>
        <td class="left"  >form y origin</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="member">deactivated</tt></td>
        <td class="left"  >int</td>
        <td class="left"  >nonzero if form is deactivated</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="member">visible</tt></td>
        <td class="left"  >int</td>
        <td class="left"  >nonzero if form is visible</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="member">frozen</tt></td>
        <td class="left"  >int</td>
        <td class="left"  >nonzero if form is frozen</td></tr>
    <tr><td class="left"   valign="baseline"><tt class="member">doublebuf</tt></td>
        <td class="left"  >int</td>
        <td class="left"  >nonzero if double buffering on</td></tr></tbody>
</table></div>

<p>

<div class="navigation">
<div class='online-navigation'>
<p></p><hr />
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td class='online-navigation'><a rel="prev" title="34.4.1 functions Defined in"
  href="node907.html"><img src='../icons/previous.png'
  border='0' height='32'  alt='Previous Page' width='32' /></a></td>
<td class='online-navigation'><a rel="parent" title="34.4 fl  "
  href="module-fl.html"><img src='../icons/up.png'
  border='0' height='32'  alt='Up one Level' width='32' /></a></td>
<td class='online-navigation'><a rel="next" title="34.4.3 forms Objects"
  href="forms-objects.html"><img src='../icons/next.png'
  border='0' height='32'  alt='Next Page' width='32' /></a></td>
<td align="center" width="100%">Python Library Reference</td>
<td class='online-navigation'><a rel="contents" title="Table of Contents"
  href="contents.html"><img src='../icons/contents.png'
  border='0' height='32'  alt='Contents' width='32' /></a></td>
<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
  border='0' height='32'  alt='Module Index' width='32' /></a></td>
<td class='online-navigation'><a rel="index" title="Index"
  href="genindex.html"><img src='../icons/index.png'
  border='0' height='32'  alt='Index' width='32' /></a></td>
</tr></table>
<div class='online-navigation'>
<b class="navlabel">Previous:</b>
<a class="sectref" rel="prev" href="node907.html">34.4.1 Functions Defined in</a>
<b class="navlabel">Up:</b>
<a class="sectref" rel="parent" href="module-fl.html">34.4 fl  </a>
<b class="navlabel">Next:</b>
<a class="sectref" rel="next" href="forms-objects.html">34.4.3 FORMS Objects</a>
</div>
</div>
<hr />
<span class="release-info">Release 2.5.1, documentation updated on 18th April, 2007.</span>
</div>
<!--End of Navigation Panel-->
<address>
See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
</address>
</body>
</html>
